import os
import pytest

from jiekou.port_job.mall.interface.CartInterface import CartInterface
from jiekou.port_job.mall.interface.Interface import Memberlnterface
from jiekou.port_job.mall.interface.OrderInterface import OrderInterface
payload = {'username': 'Jerry5',
            'password': '123456789'}





@pytest.fixture(scope='session')
def url(url="http://47.108.206.100:8085"):
    return url

@pytest.fixture(scope='session')
def headers(url):
    return Memberlnterface(url).get_member_token(payload)


# @pytest.fixture()
# def cart(url, headers):
#     return CartInterface(url, headers)
#
# @pytest.fixture()
# def order(url, headers):
#     return OrderInterface(url, headers)

